package dataMgr;


import org.hibernate.Session;

public class GroupManager {

	 private Session session = null;
	 public GroupManager(Session session) {
	  if(session == null)
	    throw new 
	      RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 public void saveGroup(Group group){
	  session.save(group);
	 }
	 public void updateGroup(Group group){
	  session.update(group);
	 }
	 public void deleteGroup(Group group) {
	  session.delete(group);
	 }
}
